<?php
/**
 * 商品排行榜和商品PV
 */


ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';


use Biz\service\Event;
use Biz\module\Decoupling\data\BackendOrderStatics;

Event::consume([Event::ORDER_CREATE_SUCCESS, Event::ORDER_PAY_SUCCESS, Event::ORDER_REFUND_USER_APPLY_SUCCESS], function ($message,$eventTag,$queueName) {
    new BackendOrderStatics($message,$queueName);
}, 'php.biz.cli.dataStat');